import request from "@/api/index"

export default{
  /**
   * @description: 添加转分塘记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/batch/transferSeparatePond/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑转分塘记录 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/batch/transferSeparatePond/edit"
    return request.post(url,params)
  },
  /**
   * @description: 转分塘审核 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  audit(params){
    const url = "/batch/transferSeparatePond/audit"
    return request.post(url,params)
  },
  /**
   * @description: 单个删除转分塘记录 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/batch/transferSeparatePond/delById"
    return request.get(url,params)
  },
  /**
   * @description: 批量删除转分塘记录 *代表必填
   * @param {String/Number} idList *
   * @return {Object}
   */
  delListById(params){
    const url = "/batch/transferSeparatePond/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryByCondition(params){
    const url = "/batch/transferSeparatePond/queryByCondition"
    return request.post(url,params)
   },
  /**
   * @description: 分页查询转分塘记录 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/batch/transferSeparatePond/queryPageByCondition"
    return request.post(url,params)
   },

  //  ----------------转分塘详情---------------
  /**
   * @description: 添加 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  detailAdd(params){
    const url = "/batch/transferSeparatePondDetail/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  detailEdit(params){
    const url = "/batch/transferSeparatePondDetail/edit"
    return request.post(url,params)
  },
  /**
   * @description: 根据转分塘id获取转分塘详情 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryByTransferSeparatePondId(params){
    const url = "/batch/transferSeparatePondDetail/queryByTransferSeparatePondId"
    return request.get(url,params)
  },
}